package com.yowasa.xiuxian.engine.callback;

import cn.hutool.core.util.StrUtil;
import com.yowasa.xiuxian.annoations.NOTIFY;


public abstract class CmdCallBackHandler implements BaseCallBackHandler {

    @Override
    public boolean match(String message) {
        NOTIFY annotation = this.getClass().getAnnotation(NOTIFY.class);
        String tag = annotation.tag();
        if (StrUtil.isNotBlank(tag) && tag.equals(message)) {
            return true;
        }
        return false;
    }


}
